package com.rd.student.jiaji.class4.suyan.zrrd.day05;
//数组反转
public class test {
    public static void main(String[] args) {
        /*int[] arr={1,2,3,4,5};
        for (int i=4;i>=0;i--){

            System.out.println(arr[i]);
        }

         */
        int[] arr={30,40,50,60,70,76,75,78};
        for (int min=0,max=arr.length-1;min<=max;min++,max--){
            int temp=arr[min];
            arr[min]=arr[max];
            arr[max]=temp;

        }
        for (int i=0;i<arr.length;i++){
            System.out.println(arr[i]);
        }

    }
}
